<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>悬停效果</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        body{
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #353848;
            height: 100vh;
        }
        .btn{
            position: relative;
            width: 200px;
            height: 60px;
            background: none;
            border: 4px solid;
            color:#17c0eb;
            font-weight: 700;
            text-transform: uppercase;
            cursor: pointer;
        }
        .btn::before,
        .btn::after{
            content: "";
            position: absolute;
            width: 14px;
            height: 4px;
            background-color: #353848;
            transform: skewX(50deg);
            transition: .4s linear;
        }
        .btn::before{
            top: -4px;
            left: 10%;
        }
        .btn::after{
            bottom: -4px;
            right: 10%;
        }
        .btn:hover::before{
            left: 80%;
        }
        .btn:hover::after{
            right: 80%;
        }
    </style>
</head>
<body>
    <button class="btn">hover me</button>
</body>
</html>